var exten = function () {
    var value = 0;
    return {
        call: function () {
            value++;
            console.log(value);
            return 0;
        }
    }
};
var extent = exten();
extent.call();
extent.call()
extent.call();